﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="intervention.aspx.vb" Inherits="intervention" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridViewItv" runat="server" CellPadding="4" DataSourceID="SqlDataSource1"
        ForeColor="#333333" GridLines="None" Width="100%" AllowPaging="True" AllowSorting="True">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:CommandField ButtonType="Image" SelectImageUrl="~/IMAGES/arrow-forward_16.gif"
                ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues"
        ConnectionString="<%$ ConnectionStrings:ResaOpConnectionString %>" DeleteCommand="DELETE FROM [itv_list] WHERE [idresamu] = @original_idresamu AND [dateC] = @original_dateC AND [createur_id] = @original_createur_id AND [createur_team] = @original_createur_team AND [samuref] = @original_samuref AND [commune] = @original_commune"
        InsertCommand="INSERT INTO [itv_list] ([idresamu], [dateC], [createur_id], [createur_team], [samuref], [commune]) VALUES (@idresamu, @dateC, @createur_id, @createur_team, @samuref, @commune)"
        OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [idresamu], [dateC], [createur_id], [createur_team], [samuref], [commune] FROM [itv_list]"
        UpdateCommand="UPDATE [itv_list] SET [dateC] = @dateC, [createur_id] = @createur_id, [createur_team] = @createur_team, [samuref] = @samuref, [commune] = @commune WHERE [idresamu] = @original_idresamu AND [dateC] = @original_dateC AND [createur_id] = @original_createur_id AND [createur_team] = @original_createur_team AND [samuref] = @original_samuref AND [commune] = @original_commune">
        <DeleteParameters>
            <asp:Parameter Name="original_idresamu" Type="String" />
            <asp:Parameter Name="original_dateC" Type="DateTime" />
            <asp:Parameter Name="original_createur_id" Type="String" />
            <asp:Parameter Name="original_createur_team" Type="String" />
            <asp:Parameter Name="original_samuref" Type="String" />
            <asp:Parameter Name="original_commune" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="dateC" Type="DateTime" />
            <asp:Parameter Name="createur_id" Type="String" />
            <asp:Parameter Name="createur_team" Type="String" />
            <asp:Parameter Name="samuref" Type="String" />
            <asp:Parameter Name="commune" Type="String" />
            <asp:Parameter Name="original_idresamu" Type="String" />
            <asp:Parameter Name="original_dateC" Type="DateTime" />
            <asp:Parameter Name="original_createur_id" Type="String" />
            <asp:Parameter Name="original_createur_team" Type="String" />
            <asp:Parameter Name="original_samuref" Type="String" />
            <asp:Parameter Name="original_commune" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="idresamu" Type="String" />
            <asp:Parameter Name="dateC" Type="DateTime" />
            <asp:Parameter Name="createur_id" Type="String" />
            <asp:Parameter Name="createur_team" Type="String" />
            <asp:Parameter Name="samuref" Type="String" />
            <asp:Parameter Name="commune" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
</asp:Content>

